<?php
echo"计算机用户输入两个整数的加减乘除的结果\n";
echo"请输入两个整数，用逗号分隔开\n";
$count=fscanf(STDIN,"%d ,%d %s",$a,$b,$other);
var_dump($count,$a,$b,$other);
if($count>2){
    echo "不要在输入的后边添加乱七八糟的东西\n";
}else if ($count<2){
    echo"请按照要求的格式输入数据\n";
}else{$jia =$a+$b ;
    $jian =$a-$b;
  //   $cheng=$a*$b;
   //  $chu=$a/$b;
    echo "$a+$b=$jia\n";
    echo "$a-$b=$jian\n";}
   // echo "$a*$b=$cheng\n";
  // echo "$a/$b=$chu\n";
